package org.omg.CORBA;

//
// Enum definition : CompletionStatus
//
// @author OpenORB Compiler
//
public final class CompletionStatus implements org.omg.CORBA.portable.IDLEntity {
	//
	// Internal member value
	//
	private int _CompletionStatus_value;

	//
	// Enum member COMPLETED_YES value
	//
	public static final int _COMPLETED_YES = 0;

	//
	// Enum member COMPLETED_YES
	//
	public static final CompletionStatus COMPLETED_YES = new CompletionStatus(
			_COMPLETED_YES);

	//
	// Enum member COMPLETED_NO value
	//
	public static final int _COMPLETED_NO = 1;

	//
	// Enum member COMPLETED_NO
	//
	public static final CompletionStatus COMPLETED_NO = new CompletionStatus(
			_COMPLETED_NO);

	//
	// Enum member COMPLETED_MAYBE value
	//
	public static final int _COMPLETED_MAYBE = 2;

	//
	// Enum member COMPLETED_MAYBE
	//
	public static final CompletionStatus COMPLETED_MAYBE = new CompletionStatus(
			_COMPLETED_MAYBE);

	//
	// Return the internal member value
	// @return the member value
	//
	public int value() {
		return _CompletionStatus_value;
	}

	//
	// Return a enum member from its value
	// @param an enum value
	// @return an enum member
	//
	public static CompletionStatus from_int(int value) {
		switch (value) {
		case 0:
			return COMPLETED_YES;
		case 1:
			return COMPLETED_NO;
		case 2:
			return COMPLETED_MAYBE;
		}
		throw new org.omg.CORBA.BAD_OPERATION();
	}

	//
	// Private constructor
	// @param the enum value for this new member
	//
	private CompletionStatus(int value) {
		_CompletionStatus_value = value;
	}

}
